package StudyCode.summary.myfile;

import java.io.File;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class GetAllFiles {

	public static void main(String[] args) {
		visitAllFiles(new File("E:\\CODE\\JAVA\\ReviewCode\\src\\StudyCode\\"));
	}

	private static void visitAllFiles(File dir) {
		if (dir.isDirectory()) {
			String[] children = dir.list();
			for (String aChildren : children) {
				visitAllFiles(new File(dir, aChildren));
			}
		} else {
			System.out.println(dir);
		}
	}
}
